home *** CD-ROM | disk | FTP | other *** search
/ Collection of Tools & Utilities / Collection of Tools and Utilities.iso / turbovis / dlgds411.zip / DLGDSN.DOC < prev    next >
Text File  |  1994-01-10  |  22KB  |  621 lines

  1.  
  2.  
  3.  
  4.  
  5.  
  6.  
  7.  
  8.                                                           January 9, 1994
  9.  
  10.                                  Dialog Design
  11.  
  12.                   A Dialogbox Design Program for Turbo Vision
  13.  
  14.                                   Version 4.1
  15.  
  16.                    (C) Copyright 1990-4 by L. David Baldwin.  
  17.                              All Rights Reserved.
  18.  
  19.   Further copyright information given below.
  20.  
  21.  
  22.   OVERVIEW
  23.  
  24.   Dialog Design takes some of the pain out of designing dialog boxes for 
  25.   Borland's Turbo Vision package.  With Dialog Design, dialog controls can be 
  26.   easily added, edited, rearranged, and the dialog itself sized, moved, etc.  
  27.   Once the design is satisfactory, Dialog Design can produce source code to 
  28.   be included in your program or a resource file for use by your program.  
  29.   Both the Pascal and C++ languages are supported.
  30.  
  31.  
  32.   REQUIREMENTS
  33.  
  34.     Borland (R) Pascal version 7.0 (Turbo Vision 2.0)
  35.       and/or
  36.     Borland C++ version 3.1  (Turbo Vision 1.0)
  37.        (Dialog Design version 2.x supports Turbo Pascal 6.0)
  38.     Some familiarity with the Turbo Vision package
  39.     VGA Monitor
  40.     A mouse is desirable
  41.  
  42.  
  43.  
  44.   GETTING STARTED
  45.  
  46.   Dialog Design uses a number of external conversion programs to generate 
  47.   source code and resources for the two languages supported.  If you have 
  48.   downloaded this package, the executables of the conversion programs may not 
  49.   have been included to save download time.  If not, you will first have to 
  50.   compile and link the source before you can do anything meaningful.  See the 
  51.   accompanying READ.ME file for information on how to do this.
  52.  
  53.   When first starting Dialog Design, a Configuration Information dialog will 
  54.   come up.  Enter your preliminary configuration here, in particular the 
  55.   language you will be using.  The default names for the conversion files 
  56.   will already be listed but you should probably add the complete path to 
  57.   these names unless they will always be in the default directory.
  58.  
  59.  
  60.  
  61.  
  62.                                       1
  63.  
  64.  
  65.  
  66.  
  67.  
  68.  
  69.  
  70.   On leaving the this dialog, you will be given the opportunity to save the 
  71.   configuration.  Once saved, you won't have to fill it out each time you 
  72.   start the program.  However, you can change the configuration at any time 
  73.   using the Options/Configuration menu selection.
  74.  
  75.  
  76.   A NOTE TO C++ USERS
  77.  
  78.   C++ currently only supports Turbo Vision 1.0.  Many of the entry dialogs in 
  79.   Dialog Design show Turbo Vision 2.0 options.  However, in C++ mode, these 
  80.   options will be grayed or otherwise made inaccessible.
  81.  
  82.  
  83.   DESIGNING A DIALOG BOX
  84.  
  85.   Dialog Design has three modes of operation:
  86.  
  87.     Design Mode
  88.  
  89.     Dialog Design begins in design mode and this is the mode that you use for 
  90.     all layout work and editing.  In design mode, the dialog doesn't look or 
  91.     act quite like it will in the final design.  Here's some of the 
  92.     differences:
  93.  
  94.        A 'canvas' background is used to better delineate the actual space 
  95.        occupied by each control.
  96.  
  97.        Controls are colored red when selected.
  98.  
  99.        Multiple controls may be selected.
  100.  
  101.        All controls may be selected even those not normally selectable.
  102.  
  103.     Try Mode
  104.  
  105.     Try mode is entered using the F9 key.  In try mode, the dialog behaves as 
  106.     it's supposed to.  You can check the Tab order, make temporary entries, 
  107.     and push buttons to actually check how things will work.  Exit try mode 
  108.     with the escape key or click on the close box.
  109.  
  110.     Ordering Mode
  111.  
  112.     Ordering mode allows you to change the Tab order of your dialog controls.  
  113.     The method for doing this is discussed further below.  The F8 key toggles 
  114.     you into and out of ordering mode.
  115.  
  116.   While there is no fixed way to design a dialog, here's one suggested 
  117.   sequence:
  118.  
  119.   1.In design mode, work with the dialogbox large enough so that you won't be 
  120.     crowded. 
  121.  
  122.  
  123.  
  124.                                       2
  125.  
  126.  
  127.  
  128.  
  129.  
  130.  
  131.  
  132.   2.From the Add menu, select a control to add.  This will bring up a dialog
  133.     where you can enter the necessary information.  Use the online help (F1 
  134.     key) if you have a question as to what goes in a particular field.  When 
  135.     the OK button is pushed, the control will appear in the lower right corner 
  136.     of the design box.  The control is then positioned by dragging it with the 
  137.     mouse, or by using the arrow keys (Shift+arrow moves a little faster).  
  138.     Work in the upper left corner of the box.
  139.  
  140.     A faster way to add controls is to use the Toolbox.  See Toolbox below 
  141.     for more details.
  142.  
  143.   3.Continue adding controls as desired.  At any time, controls can be 
  144.     repositioned or sized with the mouse (further details below).  If 
  145.     something other than position or size needs changing, select the control 
  146.     and from the Edit menu choose Edit Selected (or use F7).  This will bring 
  147.     up its dialogbox for changes.
  148.  
  149.   4.When all the controls have been added and positioned, size the box to fit 
  150.     and move it to the desired location on the desktop.  Be sure and add a 
  151.     title (Edit Dialog from the Edit menu).
  152.  
  153.   5.Enter Try Mode with the F9 key and test the dialog.  Be sure to check how 
  154.     the controls sequence using the Tab key.  Exit Try mode with Esc or click 
  155.     on the close box.
  156.  
  157.   6.If the Tab sequence needs changing, use F8 to enter ordering mode.  With 
  158.     the mouse, click on each control to establish the desired order.   Exit 
  159.     back to design mode with F8.
  160.  
  161.     Changing the sequence without a mouse is a little more complicated.  Use 
  162.     the Tab key to select (highlight) the next control to be sequenced.  Then 
  163.     press the Enter key to enter the selected control into the sequence.  
  164.     After all controls have been entered, exit back to design mode with F8.
  165.  
  166.     Some controls (such as Static Text, and Labels) don't enter into the 
  167.     tab sequence of a dialogbox.  You can order these if it's convenient, but 
  168.     the order won't effect the final results.  
  169.  
  170.     Be sure to recheck the tab order in Try mode.
  171.  
  172.   7.This is a good time to save your work.  Choose Save or Save As from the 
  173.     File menu to create or update a .DLG file.  Any file with the same name 
  174.     will be renamed with a .BKP extension.
  175.  
  176.   8.You can preview the source code to be generated by choosing one of the 
  177.     Write Source selections from the Operations menu, and then choosing the 
  178.     Screen button.  The code will appear in a viewer window.
  179.  
  180.   9.To create source code for your dialogbox, choose one of the Write Source 
  181.     selections from the Operations menu and then choose the File button.  See 
  182.     the section below on Conversion Programs for a discussion of the source 
  183.     code generated.
  184.  
  185.  
  186.                                       3
  187.  
  188.  
  189.  
  190.  
  191.  
  192.  
  193.  
  194.  
  195.   10.To generate a resource file or add the new dialogbox to an existing 
  196.     resource or EXE file, choose Write Resource from the Operation menu.  
  197.     Both a filename and a resource ID name will be requested.  If the file 
  198.     already exists, it will be renamed with a .BKP extension.  If the 
  199.     existing file is a resource or EXE file, it will be copied, and the new 
  200.     resource added to the copy.  Any existing resource with the same ID will 
  201.     be deleted.  Note that the resource ID name is case sensitive.
  202.  
  203.  
  204.   SELECTING, CLICKING, DRAGGING, SIZING, ETC.
  205.  
  206.   To select a control, click and release on it with the left button or use the 
  207.   Tab key.
  208.  
  209.   To select multiple controls, select the first, then hold down the shift key 
  210.   while clicking on the others.  Note that, in this mode, clicking toggles 
  211.   selection on and off so it's possible to deselect as well as select.
  212.  
  213.   You can also select a block of controls by using the mouse to define an 
  214.   enclosing rectangle.  Position the mouse to one corner of the desired 
  215.   rectangle (the start position must not be on a control).  Hold the left 
  216.   button down and drag to the opposite corner of the rectangle before 
  217.   releasing the button.  During the drag operation, a shaded area will show 
  218.   the rectangle.  T